/* to check the input text is less than the "maxlength" */
function lessThanMaxLength( fld )
{
	
	/* if the input text is null , or has not "maxlength" property , return true */
    if ( fld == null )
    {
        return true;
    }


    if ( ( fld.type != 'text' ) && ( fld.type != 'textarea' ) )
    {
        return true;
    }


    if ( fld.maxLength == null )
    {
        return true;
    }

    
    var len = fld.value.length ;
    var bytes = len ;
    var pass ;

	
	/* if the input text has chinese word , process it as two bytes */
    for ( var i=0 ; i < len ; i++ )
    {
        if ( fld.value.charCodeAt(i) > 255 )
        {
            bytes++ ;
        }
    }


        if ( bytes <= fld.maxLength )
        {
            pass = true ;
        }
        else 
        {
            pass = false ;
        }
    
    return pass ;
    
}



/* to check the input text is less than the "maxlength" */
function lessThanMaxLength2( fld , maxlength )
{
	
	/* if the input text is null , return true */
    if ( fld == null )
    {
        return true;
    }


    if ( ( fld.type != 'text' ) && ( fld.type != 'textarea' ) )
    {
        return true;
    }
    
    
    var len = fld.value.length ;
    var bytes = len ;
    var pass ;

	
	/* if the input text has chinese word , process it as two bytes */
    for ( var i=0 ; i < len ; i++ )
    {
        if ( fld.value.charCodeAt(i) < 0 || fld.value.charCodeAt(i) > 255 )
        {
            bytes++ ;
        }
    }


	
    if ( bytes <= Number(maxlength) )
    {
        pass = true ;
    }
    else 
    {
        pass = false ;
    }
    
    
    return pass ;
    
}



/* to check the input text is composed of number */
function isNumber( fld )
{
	
	/* if the input text is null , or has not "maxlength" property , return true */
    if ( fld == null )
    {
        return true;
    }


    if ( ( fld.type != 'text' ) && ( fld.type != 'textarea' ) )
    {
        return true;
    }
	
	return isNum(fld.value);	    
}


function isNum( v )
{
    if ( v.length <= 0 ){
        return true;
    }

    for ( var i=0 ; i<v.length ; i++ ){
		var c = v.charAt(i) ;
		if ( ( c < '0' || c > '9' ) ){
			return false ;
		}
	}
	return true ;	    
}




/* to check the input text is a valid email , valid email must be " ***@***.*** " */
function isEmail( fld )
{
	
	/* if the input text is null , or has not "maxlength" property , return true */
    if ( fld == null )
    {
        return true ;
    }



    if ( ( fld.type != 'text' ) && ( fld.type != 'textarea' ) )
    {
        return true;
    }


    if ( fld.value.length <= 0 )
    {
        return true;
    }


    
    if( fld.value.indexOf( '@' ) < 1 )
    {
    	return false ;
    }
    
    

    
    var mail_box = fld.value.substring( fld.value.indexOf( '@' ) + 1 ) ;
    
    if( mail_box == null || mail_box.length < 1 )
    {
    	return false ;
    }
    

    
    if( mail_box.indexOf( '.' ) < 1 )
    {
    	return false ;
    }
    
    
    
    
    var corp = mail_box.substring( mail_box.indexOf( '.' ) + 1 ) ;
    
    if( corp == null || corp.length < 1 )
    {
    	return false ;
    }
    


	return true ;
	    
}




/* to check the input text is composed of number */
function isNumberAndPoint( fld )
{
	
	/* if the input text is null , or has not "maxlength" property , return true */
    if ( fld == null )
    {
        return true;
    }


    if ( ( fld.type != 'text' ) && ( fld.type != 'textarea' ) )
    {
        return true;
    }


    if ( fld.value.length <= 0 )
    {
        return true;
    }

    
    for ( var i=0 ; i<fld.value.length ; i++ )
	{
		var c = fld.value.charAt(i) ;
		if ( ( c < '0' || c > '9' ) && ( c != '.' ) )
		{
			return false ;
		}
	}

	return true ;
	    
}



/* to check the input text is composed of number and two decimal */
function isNumberAndTwoDecimal( fld )
{
	
	/* if the input text is null , or has not "maxlength" property , return true */
    if ( fld == null )
    {
        return true;
    }


    if ( ( fld.type != 'text' ) && ( fld.type != 'textarea' ) )
    {
        return true;
    }


    if ( fld.value.length <= 0 )
    {
        return true;
    }

    
    /* must be 0.** */
    if ( fld.value.length > 0 && fld.value.length < 4 )
    {
        return false ;
    }
    
    
    var len = fld.value.length ;
    
    if( fld.value.charAt( len - 3 ) != '.' )
    {
    	return false ;
    }
    
    
    for ( var i=0 ; i<fld.value.length ; i++ )
	{
		var c = fld.value.charAt(i) ;
		if ( ( c < '0' || c > '9' ) && ( c != '.' ) )
		{
			return false ;
		}
	}

	return true ;
	    
}


/* 检查输入框的格式是否为合法金额，合法金额的格式有三种 12.34 , 12.3 , 12 */
function isLegalAmt( fld )
{
	
	/* 如果为空，返回true */
    if ( fld == null )
    {
        return true;
    }


    /* 如果不是输入框，返回true */
    if ( ( fld.type != 'text' ) && ( fld.type != 'textarea' ) )
    {
        return true;
    }


    /* 如果不是输入框，返回true */
    if ( fld.value.length <= 0 )
    {
        return true;
    }

    
    /* 如果不是只包含数字和小数点，返回false */
    if ( ! isNumberAndPoint( fld ) )
    {
        return false;
    }
    


	var len = fld.value.length ;
    var index = fld.value.indexOf( '.' ) ;


    /* 如果有小数点，则小数点后面必须带一位或者两位小数，前面必须有一位整数 */
    if( index == 0 )
    {
    	return false ;
    }
    
    /* 2010-06-10 多个点BUG修正 */
    var fld2 = fld.value.substring(index + 1) ;
    var index2 = fld2.indexOf('.') ;
    if ( index2 >= 0 )
    {
        return false ;
    }
    
    if( index > 0 )
    {
		if( index != (len-3) && index != (len-2) )
		{
			return false ;
		}
    }


	return true ;
	    
}



/* 检查输入框的格式是否为合法金额，然后将它转换成带两位小数的形式 */

function getAmtWithTwoDecimal( fld )
{
	
	/* 如果为空，返回true */
    if ( fld == null )
    {
        return "";
    }


    /* 如果不是输入框，返回true */
    if ( ( fld.type != 'text' ) && ( fld.type != 'textarea' ) )
    {
        return "";
    }


    /* 如果不是输入框，返回true */
    if ( fld.value.length <= 0 )
    {
        return "";
    }

    
	var len = fld.value.length ;
    var index = fld.value.indexOf( '.' ) ;
    

    /* 如果有小数点 */
    if( index >= 0 )
    {
    	/* 如果小数点后面带一位小数，则补一个0 */
		if( index == (len-2) )
		{
			return ( fld.value + "0" ) ;
		}
		
		/* 如果小数点后面带两位小数，则直接返回 */
		if( index == (len-3) )
		{
			return ( fld.value ) ;
		}
		
    }
    else	/* 如果没有小数点，则补两个0 */
    {
    	return ( fld.value + ".00" ) ;
    }


	return "" ;
	    
}

/* to check the begin_date and end_date , the end_date must later than begin_date */
function checkBeginDateAndEndDate( begin_date , end_date )
{
	
	/* if any of them is empty , return true */
	if ( begin_date == null || begin_date.value == "" )
	{
		return true;	
	}
	
	if ( end_date == null || end_date.value == "" )
	{
		return true;	
	}
	

    var arr1 = begin_date.value.split( "-" ) ;
    var arr2 = end_date.value.split( "-" ) ;

	if( arr1[1].length == 1 )
	{
		arr1[1] = "0" + arr1[1] ;
	}
	
	if( arr1[2].length == 1 )
	{
		arr1[2] = "0" + arr1[2] ;
	}

	if( arr2[1].length == 1 )
	{
		arr2[1] = "0" + arr2[1] ;
	}

	if( arr2[2].length == 1 )
	{
		arr2[2] = "0" + arr2[2] ;
	}
	
	var d1 = arr1[0] + arr1[1] + arr1[2] ;
	var d2 = arr2[0] + arr2[1] + arr2[2] ;

	if( ( parseInt( d2 ,10 ) - parseInt( d1 , 10 ) ) >= 0 )
	{
		return true ;
	}
	else
	{
		return false ;
	}
      
}


/* 判断一个日期是不是闰月 */
function checkRunYue( year , month )
{
	var bYear = 0;

	/* 先判断是不是闰年 */
	if( Number(year)%4 == 0 )
	{
		if ( Number(year)%100 == 0 )
		{
			if ( Number(year)%400 == 0 )
			{
				bYear = 1 ;
			}
			else
			{
				bYear = 0 ;
			}
		}
		else
		{
			bYear = 1 ;
		}
	
	}
	else	/* 不是闰年 */
	{
		bYear = 0 ;
	}


	if( bYear == 1 && Number(month) == 2 )
	{
		return true ;
	}
	else
	{
		return false ;
	}
	
}



/* 获取两个日期间相隔的天数，结束日期－开始日期 */
function getDaysBetweenBeginDateAndEndDate( begin_date , end_date )
{
	
	var tmp_begin_date , tmp_end_date ;
	
	/* 如果两个日期中有个为空，则设定为'0000-00-00' */
	if ( begin_date == null || begin_date.value == "" )
	{
		tmp_begin_date = '0000-00-00' ;
	}
	else
	{
		tmp_begin_date = begin_date.value ;
	}
	
	
	if ( end_date == null || end_date.value == "" )
	{
		tmp_end_date = '0000-00-00' ;
	}
	else
	{
		tmp_end_date = end_date.value ;
	}
	

    var arr1 = tmp_begin_date.split( "-" ) ;
    var arr2 = tmp_end_date.split( "-" ) ;

	
	/* 判断两个日期的格式，必须有两个'-' */
	if( arr1.length == null || arr1.length != 3 )
	{
		alert( '请输入正确的开始日期格式，例如 2007-04-03' ) ;
		return -999999 ;
	}
	
	if( arr2.length == null || arr2.length != 3 )
	{
		alert( '请输入正确的结束日期格式，例如 2007-04-03' ) ;
		return -999999 ;
	}

	var oDate1  =  new  Date(arr1[0] + '/' + arr1[1] + '/' + arr1[2]);
	var oDate2  =  new  Date(arr2[0] + '/' + arr2[1] + '/' + arr2[2]);
	
	return parseInt((oDate2 - oDate1)  /  1000  /  60  /  60  /24);
      
}

/* 判断两个日期，为一个月内，如果超出一个月返回true*/
function getDaysBetweenBeginDateAndEndDate2( begin_date , end_date )
{
	
	var tmp_begin_date , tmp_end_date ;
	
	/* 如果两个日期中有个为空，则设定为'0000-00-00' */
	if ( begin_date == null || begin_date.value == "" )
	{
		tmp_begin_date = '0000-00-00' ;
	}
	else
	{
		tmp_begin_date = begin_date.value ;
	}
	
	
	if ( end_date == null || end_date.value == "" )
	{
		tmp_end_date = '0000-00-00' ;
	}
	else
	{
		tmp_end_date = end_date.value ;
	}
	

    var arr1 = tmp_begin_date.split( "-" ) ;
    var arr2 = tmp_end_date.split( "-" ) ;

	
	/* 判断两个日期的格式，必须有两个'-' */
	if( arr1.length == null || arr1.length != 3 )
	{
		alert( '请输入正确的开始日期格式，例如 2007-04-03' ) ;
		return -999999 ;
	}
	
	if( arr2.length == null || arr2.length != 3 )
	{
		alert( '请输入正确的结束日期格式，例如 2007-04-03' ) ;
		return -999999 ;
	}
	
	var a0 = arr2[0] - arr1[0] ;
	var a1 = arr2[1] - arr1[1] ;
	var a2 = arr2[2] - arr1[2] ;
	
	if(a0<0 || a0>=2)
	{
		return true ;
	}
	
	if(a0 == 1)
	{
		if(arr1[1]!=12 || arr2[1]!=1)
		{
			return true ;
		}
		else
		{
			if(a2 <= 0)
			{
				return false ;
			}
			else
			{
				return true ;
			}
		}
	}
	
	if(a1<0 || a1>=2)
	{
		return true ;
	}
	
	if(a1 == 1)
	{
		if(a2 <= 0)
		{
			return false ;
		}
		else
		{
			return true ;
		}
	}
	else
	{
		return false ;
	}
	
}


/* 读取radioBox的选中的值 */
function getRadioValue(rdo)
{
	var rb, i ;

	if (rdo == null)
	{
		return null ;
	}

	if (rdo.length == null)
	{
		return rdo.value;
	}
	else
	{
		for (i = 0; i<rdo.length; i++)
		{
			rb = rdo[i] ;
			if (rb.checked)
			{
				return rb.value;
			}
		}
	}

	return null;

}




String.prototype.trim=function(){
	return this.replace(/(^\s*)|(\s*$)/g, "");
}


/* 是否合法日期类型 */
function checkDate(date)
{
	var oRegA=/^(\d{4})[-\/](\d{2})[-\/](\d{2})$/;

	var bOk = false;
	
	do{
 		if(!oRegA.test(date)){
			break;
		}
		
 		var nVal = parseInt(RegExp.$1);
 		if(nVal<1970 || nVal>3000){
			break;
		}
		
		var month,day;
		month 	= date.substring(5,7);
		day		= date.substring(8,10);
		
		if(month.substring(0,1)=="0"){
			month = month.substring(1,2);
		}
		
		if(day.substring(0,1)=="0"){
			day = day.substring(1,2);
		}
		

		month 	= parseInt(month);
		day 	= parseInt(day);
 		if(month<1 || month>12){
			break;
		}
		
 		if(day<1 || day>31){
			break;
		}
		

  		bOk=true;
	}while(false)

	return bOk;

}



//是否正确IP或域名
function checkIP(ip) 
{ 
    var ipArray,j;  

    if(/[A-Za-z_-]/.test(ip.value)){ 
        if (ip.value.indexOf(" ")>=0){ 
            ip.value = ip.value.replace(/ /g,""); 
        } 
        if (ip.value.toLowerCase().indexOf("http://")==0){ 
            ip.value = ip.value.slice(7);
        } 
        if(!/^([\w-]+\.)+((com)|(net)|(org)|(gov\.cn)|(info)|(cc)|(com\.cn)|(net\.cn)|(org\.cn)|(name)|(biz)|(tv)|(cn)|(mobi)|(name)|(sh)|(ac)|(io)|(tw)|(com\.tw)|(hk)|(com\.hk)|(ws)|(travel)|(us)|(tm)|(la)|(me\.uk)|(org\.uk)|(ltd\.uk)|(plc\.uk)|(in)|(eu)|(it)|(jp))$/.test(ip.value.toLowerCase())){ 
            return false; 
        } 
    } 
    else{ 
        ipArray = ip.value.split("."); 
        j = ipArray.length;
        if(j!=4) 
        { 
            return false; 
        } 

        for(var i=0;i<4;i++) 
        { 
            if(ipArray[i].length==0 || ipArray[i]>255) 
            { 
                return false; 
            } 
        } 
    } 
	return true;
} 


function getXMLRequester(){
    var xmlhttp_request = false;
    try{
        if( window.ActiveXObject ){
            for( var i = 5; i; i-- ){
                try{
                    if( i == 2 ){
						xmlhttp_request = new ActiveXObject( "Microsoft.XMLHTTP" );    
                    }else{
						xmlhttp_request = new ActiveXObject( "Msxml2.XMLHTTP." + i + ".0" );	
						xmlhttp_request.setRequestHeader("Content-Type","text/xml");
						xmlhttp_request.setRequestHeader("Content-Type","gb2312");
                 	}
					break;}
                catch(e){                        
                    xmlhttp_request = false;
                }
            }
        }else if( window.XMLHttpRequest ){
            xmlhttp_request = new XMLHttpRequest();
            if (xmlhttp_request.overrideMimeType) {
                xmlhttp_request.overrideMimeType('text/xml');
            }
        }
    }catch(e){
        xmlhttp_request = false;
    }
    return xmlhttp_request ;
}

function getMaxDay(year,month) {
	if(month==4||month==6||month==9||month==11)
   		return "30";
	if(month==2)
   		if(year%4==0&&year%100!=0 || year%400==0)
    		return "29";
		else
   			return "28";
	return "31";
}



//是否正确手机号
function checkMp(mp){ 
	if(mp.value.length!=11){
		 return false; 
	}
    if(!(/^1[3|4|5|7|8][0-9]\d{4,8}$/.test(mp.value))){ 
        return false; 
    }else{
		return true;	
	}
} 



var xmlHttp;
function createXMLHttpRequest() {
	
	try
    {
   // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
 catch (e)
    {

  // Internet Explorer
   try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
   catch (e)
      {

      try
         {
         xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
         }
      catch (e)
         {
         alert("AJAX ERROR");
         return false;
         }
      }
    }
	
}

function getCodeRemark(codeType,codeKey){
	createXMLHttpRequest();
	url = "getCodeInfo.do?codeType="+codeType+"&codeKey="+codeKey+"&rand="+Math.random();
	xmlHttp.open("GET", url,false);
	xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	xmlHttp.send();
	if (xmlHttp.readyState == 4) {
		if (xmlHttp.status == 200) {
			var returnStr = xmlHttp.responseText;
			return returnStr;
		}else{
			return "";
		}
	}
}


function getAgentCodeRemark(agentId,codeType,codeKey){
	createXMLHttpRequest();
	url = "getAgentCodeInfo.do?agentId="+agentId+"&codeType="+codeType+"&codeKey="+codeKey+"&rand="+Math.random();
	xmlHttp.open("GET", url,false);
	xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	xmlHttp.send();
	if (xmlHttp.readyState == 4) {
		if (xmlHttp.status == 200) {
			var returnStr = xmlHttp.responseText;
			return returnStr;
		}else{
			return "";
		}
	}
}

function getChartData(serverUrl){
	createXMLHttpRequest();
	url = serverUrl + "?rand="+Math.random();
	xmlHttp.open("GET", url,false);
	xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	xmlHttp.send();
	if (xmlHttp.readyState == 4) {
		if (xmlHttp.status == 200) {
			return xmlHttp.responseText;
		}
	}
}

function getBillAcctExist(operId,merId){
	createXMLHttpRequest();
	url = "getBillAcctExist.do?operId="+operId+"&merId="+merId+"&rand="+Math.random();
	xmlHttp.open("GET", url,false);
	xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	xmlHttp.send();
	if (xmlHttp.readyState == 4) {
		if (xmlHttp.status == 200) {
			var returnStr = xmlHttp.responseText;
			return returnStr;
		}else{
			return "";
		}
	}
}

/**判断是否为封顶商户**/
function isCap( value )
{
	if (value == "D" || value == "E" || value == "J" || value == "P" || value == "Q") {
		return true ;	
	}else{
		return false ;	
	}
}

function Arabia_to_Chinese(Num)
{
 for(i=Num.length-1;i>=0;i--)
 {
  Num = Num.replace(",","")//替换tomoney()中的“,”
  Num = Num.replace(" ","")//替换tomoney()中的空格
 }
 Num = Num.replace("￥","")//替换掉可能出现的￥字符
 if(isNaN(Num)) 
 { //验证输入的字符是否为数字
  alert("请检查小写金额是否正确");
  return;
 }
 //字符处理完毕后开始转换，采用前后两部分分别转换
 part = String(Num).split(".");
 newchar = ""; 
 //小数点前进行转化
 for(i=part[0].length-1;i>=0;i--)
 {
  if(part[0].length > 10)
  {
   alert("位数过大，无法计算");
   return "";
  }//若数量超过拾亿单位，提示
  tmpnewchar = ""
  perchar = part[0].charAt(i);
  switch(perchar)
  {
   case "0": tmpnewchar="零" + tmpnewchar ;break;
   case "1": tmpnewchar="壹" + tmpnewchar ;break;
   case "2": tmpnewchar="贰" + tmpnewchar ;break;
   case "3": tmpnewchar="叁" + tmpnewchar ;break;
   case "4": tmpnewchar="肆" + tmpnewchar ;break;
   case "5": tmpnewchar="伍" + tmpnewchar ;break;
   case "6": tmpnewchar="陆" + tmpnewchar ;break;
   case "7": tmpnewchar="柒" + tmpnewchar ;break;
   case "8": tmpnewchar="捌" + tmpnewchar ;break;
   case "9": tmpnewchar="玖" + tmpnewchar ;break;
  }
  switch(part[0].length-i-1)
  {
   case 0: tmpnewchar = tmpnewchar +"元" ;break;
   case 1: if(perchar!=0)tmpnewchar= tmpnewchar +"拾" ;break;
   case 2: if(perchar!=0)tmpnewchar= tmpnewchar +"佰" ;break;
   case 3: if(perchar!=0)tmpnewchar= tmpnewchar +"仟" ;break;
   case 4: tmpnewchar= tmpnewchar +"万" ;break;
   case 5: if(perchar!=0)tmpnewchar= tmpnewchar +"拾" ;break;
   case 6: if(perchar!=0)tmpnewchar= tmpnewchar +"佰" ;break;
   case 7: if(perchar!=0)tmpnewchar= tmpnewchar +"仟" ;break;
   case 8: tmpnewchar= tmpnewchar +"亿" ;break;
   case 9: tmpnewchar= tmpnewchar +"拾" ;break;
  }
  newchar = tmpnewchar + newchar;
 }
 //小数点之后进行转化
 if(Num.indexOf(".")!=-1)
 {
  if(part[1].length > 2) 
  {
   alert("小数点之后只能保留两位,系统将自动截断");
   part[1] = part[1].substr(0,2)
  }
  for(i=0;i<part[1].length;i++)
  {
   tmpnewchar = ""
   perchar = part[1].charAt(i)
   switch(perchar)
   {
    case "0": tmpnewchar="零" + tmpnewchar ;break;
    case "1": tmpnewchar="壹" + tmpnewchar ;break;
    case "2": tmpnewchar="贰" + tmpnewchar ;break;
    case "3": tmpnewchar="叁" + tmpnewchar ;break;
    case "4": tmpnewchar="肆" + tmpnewchar ;break;
    case "5": tmpnewchar="伍" + tmpnewchar ;break;
    case "6": tmpnewchar="陆" + tmpnewchar ;break;
    case "7": tmpnewchar="柒" + tmpnewchar ;break;
    case "8": tmpnewchar="捌" + tmpnewchar ;break;
    case "9": tmpnewchar="玖" + tmpnewchar ;break;
   }
   if(i==0)tmpnewchar =tmpnewchar + "角";
   if(i==1)tmpnewchar = tmpnewchar + "分";
   newchar = newchar + tmpnewchar;
  }
 }
 //替换所有无用汉字
 while(newchar.search("零零") != -1)
  newchar = newchar.replace("零零", "零");
 newchar = newchar.replace("零亿", "亿");
 newchar = newchar.replace("亿万", "亿");
 newchar = newchar.replace("零万", "万");
 newchar = newchar.replace("零元", "元");
 newchar = newchar.replace("零角", "");
 newchar = newchar.replace("零分", "");
 if (newchar.charAt(newchar.length-1) == "元" || newchar.charAt(newchar.length-1) == "角")
     newchar = newchar+"整"
 return newchar;
}
function printp(obj)
{
  if (obj.style.display=="none")
  {
   obj.style.display="";
  }
  else
  {
   obj.style.display="none";
  }
}

/**
 * 当收单机构发生变化时,费率随着改变
 */
function chnageFeeType(){
	var acqId = document.getElementById("acqId").value;
	$.ajax({
		  	type: "POST",
		  	contentType: "application/x-www-form-urlencoded; charset=UTF-8",
		  	url: "getFeeTypeByAcqId.do",
		  	data:{"acqId":acqId},
		  	dataType: "json",
		  	error:function(){
		  		alert("服务器忙，请稍后再试...") ;
		  		return;
		  	},
	  		success:function(data){
				if(data.error!=undefined){
					alert(data.error);
				}
		  		else{
			  		var codeInfoArray = data.codeInfo;//获得json
			  			
			  		var feeTypeSel = document.getElementById("feeType");
			  		feeTypeSel.options.length = null;//清空下拉框 
		  			
		  			feeTypeSel.options[0] = new Option("全部",0);
					feeTypeSel.options[0].value = "ALL";
					for(i = 0 ; i < codeInfoArray.length; i++){
						var codeInfo = codeInfoArray[i];
						feeTypeSel.options[i+1] = new Option(codeInfo.codeValue,i+1);
						feeTypeSel.options[i+1].value = codeInfo.codeKey;
					}
		  		}
		  		$.unblockUI();
		  		
  			},
	  		complete:function(){
	  		}
	  	});
}
